﻿/*********************************************************************
 *
 *                             NOTICE
 *               COPYRIGHT (c) 2012 Panoscopix Software, Inc.
 *                UNPUBLISHED - ALL RIGHTS RESERVED
 * 
 *      This program is confidential, proprietary, and a trade
 *   secret of Panoscopix Software, Inc. The receipt or possession of
 *     this program does not convey any rights to reproduce or
 *      disclose its contents, or to manufacture, use, or sell
 *       anything that it may describe, in whole or in part, 
 *   without the specific written consent of Panoscopix Software, Inc.
 *
 * A File interface supporting name, size, and content.
 * 
 *******************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileSystem
{
    public interface IFSFile : IFSNode
    {
        /// <summary>
        /// Sets the contents of this file as specified.
        /// </summary>
        /// <param name="text">Text should not be null or empty; should end with NewLine char.</param>
        void setContents(String text);

        /// <summary>
        /// Adds text to this file at the end of the file, with additional NewLine char.
        /// </summary>
        /// <param name="text">Text to append; null or empty text appends NewLine char.</param>
        void appendContents(String text);
    }
}
